package com.devops.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.devops.admin.model.DOSHelmChartRepository;
import com.devops.admin.model.TableResult;
import com.devops.admin.vo.DOSPageVo;

/**
 * @ClassNem DOSHelmChartRepositoryService
 * @Description TODO
 * @Author heyabo
 * @Date 2022/3/21 08:52
 * @Version 1.0
 **/
public interface DOSHelmChartRepositoryService extends IService<DOSHelmChartRepository> {
    /**
     * @Author heyabo
     * @Description 根据环境id获取仓库
     * @Date 09:00 2022/3/21
     * @Param [envId]
     * @return java.util.List<com.devops.admin.model.DOSHelmChartRepository>
     **/
    TableResult<DOSHelmChartRepository> getByEnvId(DOSHelmChartRepository repository, DOSPageVo pageVo);

    /**
     * @Author heyabo
     * @Description 多条件查询仓库
     * @Date 09:12 2022/3/21
     * @Param [repository]
     * @return java.util.List<com.devops.admin.model.DOSHelmChartRepository>
     **/
    TableResult<DOSHelmChartRepository> getRepositorys(DOSHelmChartRepository repository,DOSPageVo pageVo);

    /**
     * @Author heyabo
     * @Description 添加仓库
     * @Date 10:25 2022/4/2
     * @Param [repository]
     * @return void
     **/
    void saveRepository(DOSHelmChartRepository repository);

    /**
     * @Author heyabo
     * @Description 更新仓库
     * @Date 10:26 2022/4/2
     * @Param [repository]
     * @return java.lang.Boolean
     **/
    Boolean updateRepository(DOSHelmChartRepository repository);
}
